#include "widget.h"
#include "ui_widget.h"
#include<QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
//    QRect rect=this->geometry();
//    QRect rect2=this->frameGeometry();
//    qDebug()<<rect;
//    qDebug()<<rect2;
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    QRect rect=this->geometry();
    QRect rect2=this->frameGeometry();
    qDebug()<<rect;
    qDebug()<<rect2;
}
